package cn.gene.timeyan.ums.webapi.ums.mapper;

import cn.gene.timeyan.pojo.ums.model.BrowsingHistory;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 浏览记录    Mapper  接口*
 *
 * @author LWG
 * @date 2022/7/23 11:24
 * @since 1.0.0@gene.cn
 */
@Repository
public interface BrowsingHistoryMapper {
    @DS("master")
    List<BrowsingHistory> historyByUserId(@Param("userId") Long userId);
    @DS("master")
    int deleteByViewId(Long viewId);
    @DS("master")
    int addBrowsingHistory(BrowsingHistory browsingHistory);
}
